Skip to content

add s3nd_upload_parts histogram metric#55

Merged
jhoblitt merged 1 commit intomainfrom
IT-6370/upload-parts-histogram
Sep 8, 2025
Merged

add s3nd_upload_parts histogram metric#55
jhoblitt merged 1 commit intomainfrom
IT-6370/upload-parts-histogram

Conversation

@jhoblitt
Copy link
Copy Markdown
Member

@jhoblitt jhoblitt commented Sep 8, 2025

No description provided.

@jhoblitt jhoblitt requested a review from Copilot September 8, 2025 18:30
@jhoblitt jhoblitt self-assigned this Sep 8, 2025
@jhoblitt jhoblitt added the enhancement New feature or request label Sep 8, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new histogram metric s3nd_upload_parts to track the number of parts per file in S3 multipart uploads. The metric is configured as a native histogram with specific bucket settings and includes labels for code and reason.

  • Adds a new Prometheus histogram metric to monitor upload part counts
  • Configures the metric with native histogram settings including bucket factor and thresholds
  • Updates the metrics test to include the new metric in validation

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
upload/handler.go Adds uploadParts histogram metric definition and observation call
test/metrics_test.go Includes new metric name in test validation list

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@jhoblitt jhoblitt merged commit bcee1cc into main Sep 8, 2025
18 checks passed
@jhoblitt jhoblitt deleted the IT-6370/upload-parts-histogram branch September 8, 2025 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants